ordering fraction with different denominators